package com.cskaoyan.config4;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author stone
 * @date 2022/06/02 14:57
 */
@Data
@ConfigurationProperties(prefix = "cskaoyan.datasource")
// @Component
public class DataSourceProperties {
    String driverClassName;  // "com.mysql.jdbc.Driver";
    String url;  // "jdbc:mysql://localhost:3306/cskaoyan_db?useUnicode=true&characterEncoding=utf-8";

    //String username = "songge";  // "root";
    String username;  // "root";
    String password;  // "123456";

    public DataSourceProperties() {
        this.username = "songge";
    }
}
